package a.e;

import javax.swing.filechooser.FileFilter;
import java.io.File;

public class v
  extends FileFilter
{
  private String a;
  private String b;
  private boolean c;
  public static int d;
  
  public v(String paramString1, String paramString2)
  {
    this(paramString1, paramString2, true);
  }
  
  public v(String paramString1, String paramString2, boolean paramBoolean)
  {
    this.a = paramString1;
    this.b = paramString2;
    this.c = paramBoolean;
  }
  
  public boolean accept(File paramFile)
  {
    int j = e.b;
    if (j == 0)
    {
      if (this.c)
      {
        if (j != 0) {
          break label45;
        }
        if (paramFile.isDirectory()) {}
      }
      else
      {
        if (j != 0) {
          break label50;
        }
      }
    }
    else {
      if (this.a.length() != 0) {
        break label46;
      }
    }
    label45:
    return true;
    label46:
    label50:
    String str1 = paramFile.getName();
    int i = str1.lastIndexOf('.');
    if (j == 0) {
      if (i > 0)
      {
        if (j != 0) {
          break label114;
        }
        if (i < str1.length() - 1)
        {
          String str2 = str1.substring(i + 1).toLowerCase();
          if (j != 0) {
            break label114;
          }
          if (str2.equals(this.a)) {
            return true;
          }
        }
      }
    }
    label114:
    return false;
  }
  
  public String a()
  {
    return this.a;
  }
  
  public String getDescription()
  {
    return this.b;
  }
  
  public boolean equals(Object paramObject)
  {
    if (e.b == 0) {
      if (((paramObject instanceof v)) && (paramObject != null)) {
        return this.a.equals(((v)paramObject).a);
      }
    }
    return false;
  }
  
  public String toString()
  {
    return "SuffixFileFilter: " + this.a;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.v

 * JD-Core Version:    0.7.0.1

 */